import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/login',
      component: () => import('@/views/LoginVue')
    },
    {
      path: '/',
      component: () => import('@/views/layout'),
      redirect: '/dashboard',
      children: [
        {
          path: '/dashboard',
          component: () => import('@/views/DashboardVue')
        }
      ]
    },

    {
      path: '*',
      component: () => import('@/views/404.vue'),
      redirect: '/404',
      hidden: true
    }
  ]
})

export default router
